<form onsubmit="return false;" data-auto="true" action="{:url('save')}" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body padding-40">
        <div class="color-text margin-bottom-20 layui-code" style="border-left-width:1px;background:none">
            <p>新注册保洁员拥有一次赠送积分的机会，此后每邀请一位保洁员增加一次赠送机会</p>
            <p>积分在使用时与人民币兑换比例为1:1</p>
            <p>积分不设小数，可用积分为不超出可用积分比例的最大积分整数</p>
        </div>
        <div class="layui-form-item margin-bottom-0">
            <span class="color-green margin-right-10">邀请赠送次数</span><span class="nowrap color-desc">invite_present_switch</span>
        </div>
        <div class="layui-form-item margin-left-0">
            {if sysconf('invite_present_switch')}
            <input type="checkbox" name="invite_present_switch" checked="" value="1" lay-skin="switch" lay-filter="switchInvite" class="layui-input" lay-text="ON|OFF" title="开关">
            {else}
            <input type="checkbox" name="invite_present_switch" value="1" lay-skin="switch" lay-filter="switchInvite" class="layui-input" lay-text="ON|OFF" title="开关">
            {/if}
            <p class="help-block">开启邀请赠送次数时保洁员邀请新用户获赠积分赠送次数（邀请一人获取一次）</p>
        </div>
        <div class="layui-form-item margin-bottom-0">
            <span class="color-green margin-right-10">积分赠送</span><span class="nowrap color-desc">PresentIntegralSwitch</span>
        </div>
        <div class="layui-form-item margin-left-0">
            {if sysconf('present_integral_switch')}
            <input type="checkbox" name="present_integral_switch" checked="" value="1" lay-skin="switch" lay-filter="switchTest" class="layui-input" lay-text="ON|OFF" title="开关">
            {else}
            <input type="checkbox" name="present_integral_switch" value="1" lay-skin="switch" lay-filter="switchTest" class="layui-input" lay-text="ON|OFF" title="开关">
            {/if}
            <p class="help-block">开启积分赠送且保洁员有赠送次数时用户获赠积分，关闭则无法获取</p>
        </div>
        <label class="layui-form-item block relative">
            <span class="color-green margin-right-10">积分赠送比例（百分比）</span><span class="nowrap color-desc">PresentIntegralRatio</span>
            <input onblur="this.value=Math.abs(parseFloat(this.value)||0.00).toFixed(2)" name="present_integral_ratio" required placeholder="请输入积分赠送比例" value="{:sysconf('present_integral_ratio')}" class="layui-input">
            <p class="help-block">积分赠送比例，不含百分号，如50%则填写0.5</p>
        </label>
        <label class="layui-form-item block relative">
            <span class="color-green margin-right-10">服务订单可用积分比例（百分比）</span><span class="nowrap color-desc">ServiceIntegralRatio</span>
            <input onblur="this.value=Math.abs(parseFloat(this.value)||0.00).toFixed(2)" name="service_integral_ratio" required placeholder="请输入服务订单可用积分比例" value="{:sysconf('service_integral_ratio')}" class="layui-input">
            <p class="help-block">服务订单可用积分比例，不含百分号，如50%则填写0.5</p>
        </label>
        <label class="layui-form-item block relative">
            <span class="color-green margin-right-10">积分充值折扣</span><span class="nowrap color-desc">IntegralRechargeDiscount</span>
            <input onblur="this.value=Math.abs(parseFloat(this.value)||0.00).toFixed(2)" name="integral_recharge_discount" required placeholder="请输入积分充值折扣" value="{:sysconf('integral_recharge_discount')}" class="layui-input">
            <p class="help-block">积分充值折扣，0.1表示一折</p>
        </label>
        <label class="layui-form-item block relative">
            <span class="color-green margin-right-10">积分充值规则</span><span class="nowrap color-desc">IntegralRechargeRule</span>
            <input name="integral_recharge_rule" required placeholder="请输入积分充值规则" value="{:sysconf('integral_recharge_rule')}" class="layui-input">
            <p class="help-block">积分充值规则，使用“|”分割</p>
        </label>

        <div class="layui-form-item text-center margin-top-20">
            <button class="layui-btn" type="submit">保存配置</button>
        </div>
    </div>
    <script>
        window.form.render();
    </script>
</form>